package fhp.hlhj.giantfold.activity.message

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebViewClient
import fhp.hlhj.giantfold.BaseActivity
import fhp.hlhj.giantfold.R
import fhp.hlhj.giantfold.javaBean.JsHelper
import kotlinx.android.synthetic.main.activity_help_aty.*

class MessageDetailAty : BaseActivity() {

    override fun getContentId(): Int {
        return R.layout.activity_message_detail_aty
    }

    override fun initView() {
        webView.settings.javaScriptEnabled=true
        webView.settings.javaScriptCanOpenWindowsAutomatically = true
        webView.webViewClient=object : WebViewClient(){

        }
        webView.loadUrl(intent.getStringExtra("url"))
    }

    override fun initListener() {

        btExit.setOnClickListener {
            finish()
        }
    }
}
